package service

//查询
type ReqSelect struct {
	SelectParam   string `valid:"Required; " chn:"查询" eng:"sel"`
	Param         string
	OrderByColumn string
	Desc          string
	Limit         int `valid:"Range(2, 3)"`
}

//分页
type ReqPaginate struct {
	SelectParam   string `valid:"Required; " chn:"查询" eng:"sel"`
	Page          int
	PageSize      int
	OrderByColumn string
	Desc          string
	Param         string
}

//取块
type ReqPluck struct {
	Pluck string `valid:"Required;" chn:"参数" eng:"param"`
	Param string
}

//修改
type ReqUpdate struct {
	Param      string
	UpdateData map[string]interface{}
}

//删除
type ReqDelete struct {
	Param       string
	SelectParam string `valid:"Required;" chn:"查询" eng:"sel"`
	NoReturn    int    `valid:"Required;Range(2,3)" chn:"是否不返回" eng:"NoReturn"`
}

type ReqFind struct {
	Id uint64 `valid:"Required;" chn:"主键" eng:"condition"`
}
